package com.huanxing.cloud.upms.admin.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huanxing.cloud.upms.admin.mapper.SysLogMapper;
import com.huanxing.cloud.upms.admin.service.ISysLogService;
import com.huanxing.cloud.upms.common.dto.SysLogRqDTO;
import com.huanxing.cloud.upms.common.entity.SysLog;
import org.springframework.stereotype.Service;

/**
 * 操作日志
 *
 * @author lijx
 * @since 2022/2/26 16:47
 */
@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements ISysLogService {

	@Override
	public boolean saveLog(SysLogRqDTO sysLogRqDTO) {
		SysLog sysLog = new SysLog();
		BeanUtil.copyProperties(sysLogRqDTO, sysLog);
		return this.save(sysLog);
	}

}
